export function getArrayLable(array, key) {
  if (array && array.length) {
      var lableText = array.find((item) => {
          return item.value === key
      })
      if (lableText) {
          return lableText.label
      }
  }
  return ''
}